public class TestDemo {
    public static void main4(String[] args) {
        PuppeDLL puppeDLL = new PuppeDLL();
        puppeDLL.addLast(11);
        puppeDLL.addLast(11);
        puppeDLL.addLast(11);
        puppeDLL.addLast(11);
        puppeDLL.addLast(11);
        puppeDLL.display();
        puppeDLL.removeAllKey(11);
        puppeDLL.display();
    }
    public static void main(String[] args) {
        PuppeDLL puppeDLL = new PuppeDLL();
        puppeDLL.addLast(1);
        puppeDLL.addLast(2);
        puppeDLL.addLast(3);
        puppeDLL.addLast(4);
        puppeDLL.addFirst(99);
        System.out.println(puppeDLL.size());
        puppeDLL.display();
        puppeDLL.addIndex(0, 100);
        puppeDLL.addIndex(6, 200);
        puppeDLL.addIndex(2,66);
        puppeDLL.display();
        System.out.println(puppeDLL.contains(666));
        puppeDLL.remove(100);
        puppeDLL.remove(200);
        puppeDLL.remove(66);
        puppeDLL.display();
        puppeDLL.clear();
        puppeDLL.display();
    }

    public static void main2(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.addFirst(1);
        doubleLinkedList.display();
        doubleLinkedList.removeAllKey(1);
        doubleLinkedList.display();
    }

    public static void main1(String[] args) {
        DoubleLinkedList doubleLinkedList = new DoubleLinkedList();
        doubleLinkedList.addFirst(1);
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addFirst(2);
        doubleLinkedList.addLast(2);
        doubleLinkedList.addLast(11);
        doubleLinkedList.display();
        doubleLinkedList.remove_1(11);
        doubleLinkedList.display();
        doubleLinkedList.addIndex(1,99);
        doubleLinkedList.display();
        doubleLinkedList.removeAllKey(2);
        doubleLinkedList.display();
    }

}
